package com.chinasoft.feignclient.client;

import com.chinasoft.ms.dto.CarDTO;
import com.chinasoft.ms.dto.RentalDTO;
import com.chinasoft.ms.dto.RentalRecordDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "car-service")
public interface CarClient {

    @PutMapping("/status/{carId}")
    boolean updateCarStatus(@PathVariable("carId") Long CarId, @RequestParam String s);


    @GetMapping("/car/{carId}")
    public CarDTO selectById(@PathVariable("carId") Long CarId);
}
